Câu ví dụ
- To resolve this error, replace the erroneous parameter name with a correct one, possibly using the suggested name.
Để giải quyết lỗi này, thay thế tên tham số sai bằng tên chính xác, có thể sử dụng tên được đề xuất. - It makes no difference, and T is actually a quite common template parameter name for generic types.
Nó không có sự khác biệt, và T thực sự là một tham số template khá phổ biến cho các loại tổng quát (generic types). - If the method call reads well without a preposition and doesn’t need a label, you should explicitly exclude the first parameter name with an underscore:
Nếu method call các reads tốt mà không cần 1 giới từ và không cần 1 label, bạn nên loại trừ 1 cách rõ ràng tên parameter đầu tiên với 1 dấu gạch dưới: - We either specify the semantics of the content by making the parameter name more explicit, as in the first part of the example above, or, we create a new type that describes the semantics more specifically, and use that new type as a parameter.
Chúng ta hoặc chỉ định ngữ nghĩa của nội dung bằng cách làm cho tên tham số rõ ràng hơn, như trong phần đầu của ví dụ ở trên, hoặc, chúng ta tạo một loại mới mô tả ngữ nghĩa cụ thể hơn và sử dụng loại mới đó làm tham số.